body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f7fc;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    flex-direction: column;
}

h1 {
    font-size: 2.5rem;
    color: #5c6bc0;
    margin-bottom: 20px;
}

.container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 100%;
    max-width: 600px;
    text-align: center;
}

input[type="text"] {
    width: 80%;
    padding: 12px;
    font-size: 1rem;
    border: 2px solid #ccc;
    border-radius: 4px;
    margin-bottom: 15px;
    transition: border-color 0.3s;
}

input[type="text"]:focus {
    border-color: #5c6bc0;
    outline: none;
}

button {
    padding: 12px 20px;
    font-size: 1rem;
    color: white;
    background-color: #5c6bc0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #4f5a92;
}

#response {
    display: none;
    background-color: #e3f2fd;
    border: 1px solid #90caf9;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
    text-align: left;
    max-height: 400px;
    overflow-y: auto;
    white-space: pre-line; /* 保持换行 */
    font-size: 1rem;
    color: #1e88e5;
}

/* 头像样式 */
#wechat-avatar {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 150px;  /* 调整头像大小 */
    height: 150px;
    border-radius: 50%;
    border: 3px solid #fff; /* 给头像加白色边框 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 轻微阴影 */
    cursor: pointer;
}

/* 定义个人中心导航栏的样式 */
.profile-nav {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #333;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.profile-nav a {
    color: #fff;
    text-decoration: none;
}

.profile-nav:hover {
    background-color: #555;
}

.profile-nav a:hover {
    text-decoration: underline;
}

/* 弹窗样式 */
.modal {
    display: none; /* 默认隐藏 */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 300px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* 设置头像的大小和圆形样式 */
.avatar-container {
    display: inline-block;
    margin-left: 10px;
    vertical-align: middle;
}

#avatarImg {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
